package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.BuyerBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
/**
 * @Title: IBuyerMapper
 * @Package: com.project.mapper
 * @Description:
 * @Author: Liang-Xie
 */
@SuppressWarnings("all")
@Mapper
public interface IBuyerMapper extends BaseMapper<BuyerBean> {

    IPage<BuyerBean> findByItem(Page page,
                                @Param("name") String name,
                                @Param("startDate") LocalDate startDate,
                                @Param("endDate") LocalDate endDate);
}
